|
sgdk
|
#include <sprite_eng.h>
Public Attributes | |
| u16 | numSprite |
| FrameSprite ** | frameSprites |
| u16 | numCollision |
| void ** | collisions |
| s16 | w |
| s16 | h |
| u8 | tc |
| u8 | timer |
Sprite animation frame structure.
| numSprite | number of sprite which compose this frame |
| frameSprites | sprites composing the frame |
| numCollision | number of collision structure for this frame |
| collisions | collisions structures (can be either Box or Circle) |
| w | frame width in pixel |
| h | frame height in pixel |
| tc | collision type, accepted values are: COLLISION_TYPE_NONE COLLISION_TYPE_BOX COLLISION_TYPE_CIRCLE |
| timer | active time for this frame (in 1/60 of second) |